# -*- coding: UTF-8 -*-
import requests

proxies = {
  "http": "115.220.0.74:808"

}

headers = {
	##'Host': '1024.stv919.net',
	'Connection': 'keep-alive',
	'Cache-Control': 'max-age=0',
	'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
	#  'X-Requested-With': 'XMLHttpRequest',
	'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36',
	# 'DNT': '1',
	## 'Accept-Encoding': 'gzip, deflate',
	'Accept-Language': 'zh-CN,zh;q=0.8,ja;q=0.6'
	##'Referer': 'http://1024.stv919.net/pw/thread.php?fid=14'
}

try:
	print requests.get("http://www.baidu.com/",proxies=proxies,headers=headers).text
except requests.HTTPError,e:
	print e

